//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.yuebanmaoshare.file.common.utils.request;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;

public class CookieUtils {
    public static String getTokenByRequest(HttpServletRequest httpServletRequest) {
        Cookie[] cookieArr = httpServletRequest.getCookies();
        String token = "";

        for(Cookie cookie : cookieArr) {
            if ("token".equals(cookie.getName())) {
                token = cookie.getValue();
            }
        }

        return token;
    }
}
